﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Backend_Category_Add : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
		this.Form.Action = "Backend/Category/Add.aspx";
    }

	protected void Save_Click(object sender, EventArgs e)
	{
		EF_CategoryProperty category = new EF_CategoryProperty();
		category.UserID = Utilities.UserLoginID();
		category.Name = Name.Text.Trim();
		category.Description = Description.Text.Trim();
		category.Status = Status.Checked;

		EF_Category.CreateCategory(category);

		Response.Redirect("Default.aspx");
	}
}